\ifreview \usepackage[review]{cvpr} \fi
\ifarxiv \usepackage[pagenumbers]{cvpr} \fi
\ifrebuttal \usepackage[rebuttal]{cvpr} \fi
\ifcamera \usepackage{cvpr} \fi

\input{_macros}  % Add packages to _macros.tex

%% For cross-referencing labels between documents
\usepackage{xr-hyper}

\makeatletter
\newcommand*{\addFileDependency}[1]{
  \typeout{(#1)}
  \@addtofilelist{#1}
  \IfFileExists{#1}{}{\typeout{No file #1.}}
}

\makeatother
\newcommand*{\myexternaldocument}[1]{
    \externaldocument{#1}
    \addFileDependency{#1.tex}
    \addFileDependency{#1.aux}
}
%%

\definecolor{cvprblue}{rgb}{0.21,0.49,0.74}
\usepackage[pagebackref,breaklinks,colorlinks,citecolor=cvprblue]{hyperref}
\usepackage[capitalize]{cleveref}
\crefname{section}{Sec.}{Secs.}
\crefname{table}{Table}{Tables}
\crefname{figure}{Fig.}{Figs.}

\ifarxiv \crefname{appendix}{App.}{Apps.}
\else \crefname{appendix}{Suppl.}{Suppls.} \fi

\frenchspacing
